<?php

$options = [
    /**
     * 发货周期
     */
    'deliver_period' => [
        ['name' => '4小时内', 'value' => '4'],
        ['name' => '8小时内', 'value' => '8'],
        ['name' => '12小时内', 'value' => '12'],
        ['name' => '16小时内', 'value' => '16'],
        ['name' => '20小时内', 'value' => '20'],
        ['name' => '1天内', 'value' => '24'],
        ['name' => '2天内', 'value' => '48'],
        ['name' => '3天内', 'value' => '72'],
        ['name' => '5天内', 'value' => '120'],
        ['name' => '7天内', 'value' => '168'],
        ['name' => '8天内', 'value' => '192'],
        ['name' => '10天内', 'value' => '240'],
        ['name' => '12天内', 'value' => '288'],
        ['name' => '15天内', 'value' => '360'],
        ['name' => '17天内', 'value' => '408'],
        ['name' => '20天内', 'value' => '480'],
        ['name' => '25天内', 'value' => '600'],
        ['name' => '30天内', 'value' => '720'],
        ['name' => '35天内', 'value' => '840'],
        ['name' => '45天内', 'value' => '1080'],
    ],
    /**
     * 计价方式
     */
    'pricing_mode' => [
        ['name' => '按件数', 'value' => '0'],
        ['name' => '按重量', 'value' => '1'],
        ['name' => '按体积', 'value' => '2'],
    ],
    /**
     * 计价方式单位
     */
    'pricing_mode_unit' => [
        ['name' => '件（个）', 'value' => '0'],
        ['name' => '重（kg）', 'value' => '1'],
        ['name' => '体积（m³）', 'value' => '2'],
    ],
    /**
     * 血型信息
     */
    'bloodtype' => [
        ['name' => 'A型', 'value' => 'A'],
        ['name' => 'B型', 'value' => 'B'],
        ['name' => 'AB型', 'value' => 'AB'],
        ['name' => 'O型', 'value' => 'O'],
        ['name' => 'Rh型', 'value' => 'Rh'],
        ['name' => 'MN型', 'value' => 'MN'],
        ['name' => 'MNSs型', 'value' => 'MNSs'],
        ['name' => '其他', 'value' => 'Other']
    ],
    /**
     * 教育程度信息
     */
    'education' => [
        ['name' => '小学', 'value' => 'Primary School'],
        ['name' => '初中', 'value' => 'Junior Middle School'],
        ['name' => '中专', 'value' => 'Polytechnic School'],
        ['name' => '高中', 'value' => 'Senior High School'],
        ['name' => '专科', 'value' => 'Junior College Education'],
        ['name' => '本科', 'value' => 'Regular College Course'],
        ['name' => '硕士研究生', 'value' => 'Master'],
        ['name' => '博士研究生', 'value' => 'Doctor'],
        ['name' => '博士后', 'value' => 'Post Doctoral']
    ],
];
$temps = [];
foreach ($options as $scope => $items) {
    foreach ($items as $item) {
        $item['scope'] = $scope;
        $temps[] = $item;
    }
}
return $temps;
